package com.zzzy;

import java.util.Iterator;
import java.util.Set;

import redis.clients.jedis.Jedis;

/**
 * Hello world!
 *
 */
public class App 
{
	
	
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );
        
        Jedis jedis = new Jedis("127.0.0.1", 6379);
    	System.out.println( "服务器返回： " + jedis.ping());
    	
        Set<String> set = jedis.keys("*");
        Iterator<String> iterator = set.iterator();
        while(iterator.hasNext() ) {
        	System.out.println(iterator.next());
        }
    }
    
}
